import request from '@/utils/request'

export const getADList = () => {
  return request({
    method: 'GET',
    url: '/front/ad/getAdList'
  })
}

export const getPositionList = () => {
  return request({
    method: 'GET',
    url: '/front/ad/space/getAllSpaces'
  })
}

export const getPositionListOne = id => {
  return request({
    method: 'GET',
    url: '/front/ad/getAdById',
    params: {
      id: id
    }
  })
}

export const setStatus = params => {
  return request({
    method: 'GET',
    url: '/front/ad/updateStatus',
    params
  })
}
